﻿#region Usings

using System;
using System.ComponentModel.DataAnnotations;

#endregion

namespace DbConvertor.Dao.Entities
{
    [DisplayColumn("TispTisp")]
    public class Distance
    {
        #region Primitive Properties

        [Key]
        public long Id { get; set; }

        [Required]
        [MaxLength(8)]
        public string TispTisp { get; set; }

        [Required]
        public int Oebb { get; set; }

        [Required]
        public int Db { get; set; }

        [Required]
        public int Sbb { get; set; }

        [Required]
        public int P10 { get; set; }

        [Required]
        public int P20 { get; set; }

        [Required]
        public int P30 { get; set; }

        [Required]
        public int P31 { get; set; }

        [Required]
        public int P40 { get; set; }

        [Required]
        public int P41 { get; set; }

        [Required]
        public int P42 { get; set; }

        [Required]
        public int P43 { get; set; }

        [Required]
        public int P50 { get; set; }

        [Required]
        public int P51 { get; set; }

        [Required]
        public int P52 { get; set; }

        [Required]
        public int P53 { get; set; }

        [Required]
        public int P60 { get; set; }

        [Required]
        public int P80 { get; set; }

        [Required]
        public int Mav { get; set; }

        [Required]
        public int P81 { get; set; }

        #endregion

        #region Navigation Properties

        [Required]
        public virtual Station Station1 { get; set; }

        [Required]
        public virtual Station Station2 { get; set; }

        #endregion
    }
}